<div class="content">

<div class="bm mdcp">
<h1>城市管理</h1>

<div class="ttp cl">
</div>




<h1>添加城市</h1>
<div class="exfm">
<form method="post" action="?mod=City&act=list">
<input name="do" value="add" type="hidden">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<th width="15%">城市中文名称:</th>
<td width="45%"><input name="name_cn" size="20" class="px" type="text"></td>
</tr>
<tr>
<td width="15%">城市英文名称:</td>
<td width="45%"><input name="name_en" size="20" class="px" type="text"></td>
</tr>
<tr>
<td width="15%">是否启用:</td>
<td width="45%"><input type="radio" name="enable" value="1">开启&nbsp;<input type="radio" name="enable" value="0" checked="checked">关闭</td>
</tr>
<tr>
<td></td>
<td colspan="1">
<button type="submit" class="pn" name="submit" value="1"><strong>提交</strong></button>
</td>
</tr>
</tbody></table>
</form>
</div>
<h2 class="ptm">城市列表</h2>
<form method="post" action="?mod=City&act=list">
<input name="do" value="del" type="hidden">
<table id="list" class="dt" cellpadding="0" cellspacing="0">
	<thead>
		<tr>
			<th class="c"></th>
			<th>城市名称</th>
			<th>英文名称</th>
			<th>是否开启</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<?php 
		if (!empty($pageData['CityList'])):
		foreach ($pageData['CityList'] as $key => $val):
		?>
		<tr>
			<td><input value="<?php echo $val['city_id']?>" class="pc" name="city_id[]" type="checkbox"></td>
			<td><?php echo $val['name_cn']?></td>
			<td><?php echo $val['name_en']?></td>
			<td><?php echo $val['enable'] == '1' ? '开启':'关闭'; ?></td>
			<td></td>
		</tr>
		<?php 
		endforeach;
		endif;
		?>

		<tr class="bbn">
			<td>
			<label for="chkall"><input class="pc" id="chkall" name="chkall" onclick="checkall(this.form)" type="checkbox"> 删?</label>
			</td>
			<td colspan="4">
			<button type="submit" class="pn" name="submit" value="true"><strong>提交</strong></button>
			</td>
		</tr>
	</tbody>
</table>
</form>


</div>

</div>
